﻿/* 
 *  <copyright file="IScene.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */

using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SobrietyEngine.Actor;
using SobrietyEngine.Guids;

namespace SobrietyEngine.Scene
{
    public interface IScene
    {
        Vector3 ActorPositionLimit { get; set; }

        Boolean Active { get; set; }
        Boolean Debug { get; set; }
        String Name { get; set; }
        IGraphicsDeviceService GraphicDeviceService { get; }

        Boolean Paused { get; }
        void TogglePause();
        void Pause(Boolean pause);

        void Initialize();

        void RegisterComponent(SobrietyEngine.Components.IComponent Component);
        void RegisterComponents(IActor actor);
        void UnregisterComponent(SobrietyEngine.Components.IComponent Component);
        void UnregisterComponents(IActor actor);
        List<SobrietyEngine.Components.IComponent> GetComponents(Type type);
        void DisableControllers();
        void EnableControllers();

        IActor CreateEmptyActor();
        IActor CreateActor(List<SobrietyEngine.Components.IComponent> ComponentList);
        void RemoveActor(CGuid guid);
        void RemoveActor(IActor actor);
        void Clear();
        void Remove();
        
        void Update(GameTime gameTime);
        void ManualDraw(GameTime gameTime);                    
    }
}
